package com.cn.controller;

import com.cn.entity.PageRequest;
import com.cn.entity.PageVo;
import com.cn.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StudentController {

    @Autowired
    private StudentService studentService;

    @PostMapping("/pageRequest")
    public PageRequest pageRequest(@RequestBody PageVo pageVo){
        return studentService.pageRequest(pageVo);
    }
}
